package com.ad.pet.app.shopcar;

import com.ad.pet.common.structure.mvp.AbsView;
import com.ad.pet.common.structure.mvp.BasePresenter;
import com.ad.pet.models.remote.CommList;
import com.ad.pet.models.remote.User;
import com.ad.pet.models.remote.cart.EditNum;
import com.ad.pet.models.remote.cart.Good;
import com.ad.pet.models.remote.cart.NewProduct;

import java.util.List;

/**
 * Created by SEELE on 2018/4/28.
 */

public class ShoppingCarContract  {
   public interface Presenter extends BasePresenter<ShoppingCarContract.View> {

        void getCartList();
        void editCart(String cartId,String num,String sku);
        void delCart(String cartIds);
        void getCartPrice(String cids);
        void showCartNumber();
        void changeChoseStauts(String cartIds);
        void newGetCartProduct(String cartIds);

    }

    public interface View extends AbsView {
        void  getCartListSuccess(CommList<List<Good>> good);
        void editCartSuccess(EditNum editNum);
        void delCartSuccess();
        void getCartPriceSuccess(EditNum editNum);
        void showCartNumberSuccess(User user);
        void changeChoseStudentsSuccess();
        void newGetCartProductSuccess(NewProduct newProduct);
    }
}
